<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/common/jsp/global.jsp"%>
<div class="wrapper-md" ng-controller="configModuleListCtrl">
    <div >
        <!-- breadcrumb -->
        <ul class="breadcrumb bg-white b-a">
            <li ><i class="glyphicon glyphicon-list"></i>模块定义</li>
        </ul>
        <!-- / breadcrumb -->
    </div>
    <div class="panel panel-default">

        <div class="row wrapper">
            <div class="col-sm-5 m-b-xs">
                <div class="input-group">
                    <input type="text" class="input-sm form-control" placeholder="Search" ng-model="searchKey" ng-init="searchKey='${param.searchKey}'">
                      <span class="input-group-btn">
                        <button class="btn btn-sm btn-default" type="button" ng-search><i class="glyphicon glyphicon-search"></i></button>
                      </span>
                </div>
            </div>
            <div class="col-sm-7">
                <div class="pull-right">
                    <button type="button" class="btn btn-default " ui-sref="moduleAdd">新建</button>
                    <button type="button" class="btn btn-default " ng-refresh >刷新</button>
                </div>

            </div>
        </div>
        <div class="table-responsive">
            <table class="table table-striped b-t b-light">
                <thead>
                <tr>
                    <th style="width:20px;">
                        <label class="i-checks m-b-none">
                            <input type="checkbox" ng-all-checkbox="moduleIds"><i></i>
                        </label>
                    </th>

                    <th width="20px">序号</th>

                    <th>模块名称</th>
                    <th>模块路径</th>
                    <th>备注</th>
                    <th>排序号</th>
                    <th>创建时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>

                    <c:forEach items="${infoList}" var="autoConfigModule" varStatus="status">
                        <tr>
                            <td><label class="i-checks m-b-none"><input type="checkbox" name="moduleIds" ng-checkbox value="${autoConfigModule.pkId}"><i></i></label></td>
                            <td>${status.index+1}</td>
                             <td>${autoConfigModule.lbName} </td>
                             <td>${autoConfigModule.lbPackage} </td>
                             <td>${autoConfigModule.lbInfo} </td>
                             <td>${autoConfigModule.lbOrder} </td>
                             <td>${autoConfigModule.lbUpdateTime} </td>
                             <td>
                                <a ui-sref="moduleLook({id:'${autoConfigModule.pkId}'})"><span class="font-bold" >查看</span>  </a>
                             </td>
                        </tr>
                    </c:forEach>

                </tbody>
            </table>
        </div>
    </div>
</div>
